/* 
 *  Copyright (c) 2011—2013 Panguso.com. All rights reserved. 
 *  File Name:  DbAccount.java                                      
 *  File Contents Outline : 用户数据对象
 *  File  Create Date:   2012年7月30日
 *  File Version#: Revision#: #1                  
 *  File  Latest Modify Date : 2013年1月16日
 *  File Author :  bachuan@panguso.com
 */


package storage.dbobject;

import java.util.UUID;


public class DbAccount {
    public static final String cl_key = "KEY";
    private String rowKey;
    public static final String cl_username = "username";
    private String username;
    public static final String cl_password = "password";
    private String password;
    public static final String cl_group = "group";
    private String group;

    public DbAccount(String rowKey, String username, String password, String group) {
        this.rowKey = rowKey;
        this.username = username;
        this.password = password;
        this.group = group;
    }

    public DbAccount(String username, String password, String group) {
        this.rowKey = UUID.randomUUID().toString();
        this.username = username;
        this.password = password;
        this.group = group;
    }

    public String getGroup() {
        return group;
    }

    public void setGroup(String group) {
        this.group = group;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRowKey() {
        return rowKey;
    }

    public void setRowKey(String rowKey) {
        this.rowKey = rowKey;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
    
}
